<template>
	<view class="bigbox">
		<rich-text :nodes="detail.content"></rich-text>
	</view>
</template>

<script>
	import { getArticleDetail } from '../../api/index.js'
	export default {
		data() {
			return {
				detail:""
			}
		},
		onLoad(options) {
			console.log(options,'跳转的id');
			this.getDetail(options.id)
			
		},
		methods: {
			getDetail(id){
				getArticleDetail(id).then(res=>{
					console.log(res);
					if(res.code == 1){
						this.detail = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
page{
	// background-color: #f3f3f3;
	.bigbox{
		background-color: #fff;
		padding: 40rpx;
	}
	
}
</style>
